﻿using HolaMundoMVC4.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace HolaMundoMVC4_EF5
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            MiStart();
        }

        protected void MiStart()
        {
            /*
            Link link = new Link();
            link.descripcion = "Google";
            link.url = "http://www.google.com";

            Link link2 = new Link();
            link2.descripcion = "La Nación";
            link2.url = "http://www.lanacion.com";

            Link link3 = new Link();
            link3.descripcion = "9gag";
            link3.url = "http://www.9gag.com";

            LinkContenedor.agregarLink(link);
            LinkContenedor.agregarLink(link2);
            LinkContenedor.agregarLink(link3);
             * */
        }

    }
}